package com.bwie.controller;

import com.bwie.pojo.R;
import com.bwie.service.OrderService;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/order")
@CrossOrigin
public class OrderController {
    @Autowired
    private OrderService orderService;

    /**
     * 订单表
     * @param changeId
     * @return
     */
    @PostMapping("/getOrderList/{changeId}")
    private R getOrderList(@PathVariable Integer changeId){
        return orderService.getOrderList(changeId);
    }


}
